//Page Object
Page({
  data: {
    agreeList:[
      {
        title:'隐私协议',
        id:0
      },
      {
        title:'服务协议',
        id:1
      }
    ]
  },
  //options(Object)
  onLoad: function(options){
    
  },
  jumpArticle(event){
    let id = event.currentTarget.dataset.id
    wx.navigateTo({
      url:'/pages/article/article?id='+id
    })
  },
  logoOut(){
    wx.removeStorageSync('token')
    wx.removeStorageSync('phone')
    wx.showModal({
      content:"退出成功，请返回首页",
      confirmText:'确定',
      showCancel:false,
      success(){
        wx.reLaunch({
          url:'/pages/index/index'
        })
      }
    })
  }
});